package cc.sunwl;

import cc.sunwl.proxy.ProxyClass;
import cc.sunwl.proxy.ProxyInterface;

public class App {
    public static void main(String[] args) {
        String name = "对面的女孩";
        ProxyInterface p1 = new ProxyInterface(name);
        p1.giveDolls();
        p1.giveDolls();
        p1.giveChocolate();
        System.out.println("-----------------");
        ProxyClass p2 = new ProxyClass(name);
        p2.giveDolls();
        p2.giveDolls();
        p2.giveChocolate();
    }
}
